(color-name-rgb-alist): Use 16-bit RGB values instead of 8-bit, for
authorMiles Bader <miles@gnu.org>
Sun, 9 Jun 2002 12:53:53 +0000 (12:53 +0000)
committerMiles Bader <miles@gnu.org>
Sun, 9 Jun 2002 12:53:53 +0000 (12:53 +0000)
commit31dcbd7e6c8321c5173ce52404ebdb4629767fd8
treea3337e85d9790cb15ec7c5044c7f73c8e2b5419f
parentbad22231e403c26f3a627a802d9626ac0c0c1043
(color-name-rgb-alist): Use 16-bit RGB values instead of 8-bit, for
consistency with the rest of emacs.
(tty-color-canonicalize): Only copy COLOR if we need to change it.
(tty-color-approximate): Scale values from `color-name-rgb-alist'
appropriately.  Return the whole color description, rather than just the
RGB values.
(tty-color-standard-values): New function.  Code mostly taken from
`tty-color-translate'.
(tty-color-translate, tty-color-values): Use `tty-color-desc' to do all
the work.
(tty-color-desc): Do color lookup here instead of calling
`tty-color-translate' and `tty-color-by-index'; this is now the main
place to do it.
lisp/term/tty-colors.el